﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WucCloud.Utility
{
    /// <summary>
    /// Api常用返回结果
    /// </summary>
    public class ApiResult
    {
        /// <summary>
        /// 返回的状态码
        /// </summary>
        public object code { get; set; }

        /// <summary>
        /// 返回的提示消息
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 列表的记录数
        /// </summary>
        public int count { get; set; }

        /// <summary>
        /// 获取返回的数据
        /// </summary>
        public object data { get; set; }
    }

    public class ApiResult<T>
    {
        /// <summary>
        /// 返回的状态码
        /// </summary>
        public object code { get; set; }

        /// <summary>
        /// 返回的提示消息
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 列表的记录数
        /// </summary>
        public int count { get; set; }

        /// <summary>
        /// 获取返回的数据
        /// </summary>
        public T data { get; set; }
    }
}
